/*
 * @Author: your name
 * @Date: 2020-11-14 08:37:28
 * @LastEditTime: 2021-04-22 15:38:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \HDZP\HDY-Perfect\src\service\config.js
 */
const devBaseURL = "https://dev.lexiangpingou.cn/hd_supply_chain_api.php";
// const devBaseURL = "https://dev.huodiesoft.com/hd_supply_chain_api.php";
const proBaseURL = 'https://www.lexiangpingou.cn/hd_supply_chain_api.php';

const devPayURL = 'https://dev.lexiangpingou.cn/php-java/TaiBankapi.php';
const proPayURL = 'https://www.lexiangpingou.cn/php-java/TaiBankapi.php';


const host = window.location.host

const isDev = (host === 'dev.lexiangpingou.cn') ? true : false

export const BASE_URL = isDev ? devBaseURL : process.env.NODE_ENV === 'development' ? devBaseURL : proBaseURL;
export const PAY_URL = isDev ? devPayURL : process.env.NODE_ENV === 'development' ? devPayURL : proPayURL;
export const TIMEOUT = 5000;

export const _isDev = isDev